<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


Class User extends CI_Model
{
	function __construct()
	{
		parent::__construct();
	}
	
	function get_list(){
		$query= $this->db->get('users');
		//var_dump($query);
		
		if ($query->num_rows()!=0)
		{
			return $query->result_array();	
		}
		else
		{
			return false;
		}
	}
	
	function get_data($id=0)
	{ 
		$query= $this->db->get_where('users',array('id'=>$id));
		if ($query->num_rows()!=0)
		{
			return $query->row();	
		}
		else
		{
			return array();
		}
	}
}
	